define(["jquery",
	"scprit/nutrition/app/nutritionApplication/nutritionApplicationList.servers.js",
	"scprit/nutrition/app/nutritionApplication/nutritionApplicationList.ui.js",
    "scprit/nutrition/app/nutritionApplication/nutritionApplicationList.event.js"],
    function($,$servers,$ui,$event){
    var nutritionApplicationList = {};

    /**
     * 患者应用列表统计数据
     */
    var ajaxPatientStatisticsCallBack = function(data){
    	$ui.topStatisticsInit({
    		"id":"monitorReportList",
    		"data":data
    	});
    	$ui.bottomStatisticsInit({
    		"id":"monitorReportAllNumber",
    		"data":data
    	});
    	$("#addNutritionScheme").unbind("click");
    	$("#addNutritionScheme").click($event.onAddNutritionScheme);
    	$event.getListAll(1);
    }

    nutritionApplicationList.init = function(){
    	$("#addNutritionScheme").unbind("click");
    	$("#addNutritionScheme").click($event.onAddNutritionScheme);
    	$servers.ajaxPatientStatistics(ajaxPatientStatisticsCallBack);
    }

    return nutritionApplicationList;
});